<link rel="stylesheet" href="/static/cloud/css/cloud.css" />
<style type="text/css">
	.content{margin:20px;}
	.content ul{padding-top: 10px;padding-bottom: 10px}
	.content .layui-nav .url{padding-right: 0.5rem;padding-left: 0.5rem;cursor: pointer;text-align: center;line-height: 40px}
	.content .bar{margin-bottom: 0.5rem}
	.content .layui-nav{background: white;color: #6d6d6d;padding: 0}
	.content .table_file_name{color: #00986f;}
	.content .table_file_name:hover{cursor: pointer;color: #5fb878;}
	.content .forbid{color: #cacaca}
	.content .layui-field-box .sys-info-title{color: #1e9fff;}
</style>
<div class="content">
	<div class="layui-col-md2">
		<div id="admin_menu"></div>
	</div>
	<div class="layui-col-md10" style="padding: 20px;background-color: white;">
		<h1>欢迎来到系统管理</h1>
		<br>
		<h3 style="color: #a0a0a0;">请点击左侧菜单进行相应配置</h3>

		<br><br>
		
		<h2></h2>

		<fieldset class="layui-elem-field layui-field-title">
			<legend >系统信息</legend>
			<div class="layui-field-box">
				<h3>
					<div class="layui-inline sys-info-title">系统版本：</div>
					<div class="layui-inline sys_version">--</div>
					<br>
					<div class="layui-inline sys-info-title">软件官网：</div>
					<div class="layui-inline"><a href="http://ecdisk.enianteam.com" target="_blank">http://ecdisk.enianteam.com</a></div>
				</h3>
			</div>
		</fieldset>

		<fieldset class="layui-elem-field layui-field-title">
			<legend>统计</legend>
			<div class="layui-field-box">
				<h3>
					<div class="layui-inline sys-info-title">实际文件数量：</div>
					<div class="layui-inline actual_file_count">--</div>
					<div class="layui-inline">个 </div>
					<div class="layui-inline sys-info-title">&nbsp 共占用：</div>
			
					<div class="layui-inline actual_use_capacity">--</div>
				</h3>
				<!-- <h3>
								<div class="layui-inline sys-info-title">实际使用容量：</div>
								<div class="layui-inline actual_use_capacity">--</div>
							</h3> -->
			</div>
		</fieldset>
		
		
		<!-- <button class="layui-btn" id="import-file">导入文件</button> -->
	</div>
</div>
<script type="text/javascript">
	layui.use(['table'],function(){
		var table=layui.table,$=layui.$;
		$("title").text('系统管理 - 私有云盘');
		app.ajaxGet("/api/admin/sysInfo",function(res){
			if(res.err_code==0){
				$(".sys_version").html("v"+res.data.sys_version)
				$(".actual_use_capacity").html(app.bytesToSize(res.data.actual_use_capacity))
				$(".actual_file_count").html(res.data.actual_file_count)
			}
		})
		app.runTpl('admin_menu', {elem: '#admin_menu'})
	})
</script>